/*
 * @Author: fjxcjm 3157329468@qq.com
 * @Date: 2024-10-10 10:52:29
 * @LastEditors: fjxcjm 3157329468@qq.com
 * @LastEditTime: 2024-10-12 15:35:22
 * @FilePath: \vue3-project\src\router\modules\promoter\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Layout from "@/layout/index.vue";

export default [
  {
    path: "/",
    component: Layout,
    redirect: "course-info",
    name: "Promoter",
    meta: {
      title: "地推教师",
    },
    children: [
      // 课程信息
      {
        path: "/course-info",
        component: () => import("@/views/promoter/course-info.vue"),
        name: "CourseInfo",
        meta: { title: "课程信息" },
      },
      // 学员信息记录
      {
        path: "student-info",
        name: "StudentInfo",

        meta: { title: "学员信息记录" },
        redirect: "/promoter/student-info/registration",
        children: [
          {
            path: "/registration",
            component: () =>
              import("@/views/promoter/student-info/registration.vue"),
            name: "StudentRegistrationInfo",
            meta: { title: "学员登记信息" },
          },
          {
            path: "/reservation",
            component: () =>
              import("@/views/promoter/student-info/reservation.vue"),
            name: "StudentReservationInfo",
            meta: { title: "预定学员信息" },
          },
        ],
      },
      // 班级开班情况
      {
        path: "/class-schedule",
        component: () => import("@/views/promoter/class-schedule.vue"),
        name: "ClassSchedule",
        meta: { title: "班级开班情况" },
      },
    ],
  },
];
